﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width"/>
    <link href="~/Content/login.css" rel="stylesheet"/>
    <script type="text/javascript" src="~/Scripts/jquery.min.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.easyui.min.js"></script>

    <title>欢迎登陆图书管理系统</title>
</head>
<body>
@* <script type="text/javascript" color="0,255,0" opacity='0.7' zindex="-2" count="100" src="/Scripts/canvas-nest.min.js"></script> *@
<div id="title">
    <span>欢迎登录图书管理系统</span>
</div>
<div closed="true" id="dlg" class="easyui-dialog" title="提示"
     style="text-align:center; width:300px;height:200px;padding:10px" data-options="
				iconCls: 'icon-save',
				buttons: [{
					text:'Ok',
					iconCls:'icon-ok',
					handler:function(){
						$('#dlg').dialog('close');
                        $('#ff').form('clear');
					}
				}]
			">
    <h2>@ViewBag.Message</h2>
</div>
<div id="main">
    <form id="ff" action="/DengLu/Index" method="post" >
        <input type="text" name="username" placeholder="请输入账号"/>
        <input type="password" name="password" placeholder="请输入密码"/>
   
        <div style="text-align: center; padding: 5px 0">
            <a id="zhuce" href="@Url.Action("Index", "ZhuCe", "")" class="easyui-linkbutton" style="width:80px;">注册</a>
        </div>
        <div style="text-align: center; padding: 5px 0; float: right; margin-top: -50px; margin-right: 12px">
            <a id="chaxun" href="javascript:void(0)"  class="easyui-linkbutton" type="submit"
               style="width:80px;">登录</a>
        </div>
    </form>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        console.log('这是ready方法')
        if ('@ViewBag.Message'!=null){
            $('#dlg').dialog('open');
        }

    })
</script>
<script>
    document.getElementById('chaxun').addEventListener('click', function() {
        document.getElementById('ff').submit(); // 替换为你的表单 ID
    });
    function submitForm() {
        $('#ff').form('submit');
    }

</script>

</body>
</html>
